package org.plex.core.imp;

import java.util.Date;

import org.plex.core.AuthResult;
import org.plex.model.User;
import org.plex.model.imp.UserImp;

public class AuthResultImp implements AuthResult {

	private com.adobe.idp.um.api.infomodel.AuthResult authResult;
	
	public com.adobe.idp.um.api.infomodel.AuthResult getAuthResult() {
		return authResult;
	}

	public void setAuthResult(com.adobe.idp.um.api.infomodel.AuthResult authResult) {
		this.authResult = authResult;
	}

	
	
	public AuthResultImp(com.adobe.idp.um.api.infomodel.AuthResult authResult)throws NullPointerException
	{
		if(null==authResult)
		{
			throw new NullPointerException();
		}
		this.authResult=authResult;
	}
	
	public String getAssertion() {
		// TODO Auto-generated method stub
		return this.authResult.getAssertion();
	}

	public String getAuthType() {
		// TODO Auto-generated method stub
		return this.authResult.getAuthType();
	}

	public User getAuthenticatedUser() {
		// TODO Auto-generated method stub
		return new UserImp(this.authResult.getAuthenticatedUser());
	}

	public Date getExpriationHint() {
		// TODO Auto-generated method stub
		return this.authResult.getExpirationHint();
	}

	public boolean isComplete() {
		// TODO Auto-generated method stub
		return this.authResult.isComplete();
	}

}
